package com.cloudtcm.mapper;

import com.cloudtcm.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EmployeeMapper {
    /**
     * 根据用户名查询员工
     * @param username
     * @return
     */
    @Select("select * from employee where username = #{username}")
    Employee getByUsername(String username);

    /**
     * 新增员工信息
     * @param employee
     */
    void insert(Employee employee);

    /**
     * 更新员工信息
     * @param employee
     */
    void update(Employee employee);
}
